6.6. TCL¶
The synthesis and place and route tools are driving by scripts written using the TCL language
6.6.1. TCL on MSYS2¶
You can install TCL on MSYS2 for windows:
MINGW64 ~ $ pacman -S mingw64/mingw-w64-x86_64-tcl
6.6.2. TCL on Linux¶
Your linux distribution should have a TCL package
6.6.3. Quick Start¶
Just like any other script language, you can run a TCL script by writing code in a file and running the file using the TCL interperter.
For example, this file prints “Hello World” to the console:
# This is a comment
# Save this file to hello.tcl
puts "Hello World"
Now run using the tclsh command:
~ $ tclsh hello.tcl
6.6.4. Tutorial¶
The official TCL tutorial is a good place to use as a reference to learn the language while writing tools scripts:
6.6.5. Command Reference¶
in TCL, a function is called a command.
The standard TCL library has a good set of basics commands to perform the basic operations of a program: